<!--2nd column -->
<div class="col-s-5 col-md-5 align container" >
	<div class = "greeting" id = "busy">
	    <?php echo 'Hello '.printId($client);?>
	</div>
	<br><br>
		<div class = "align">	
			<div class = "sample">
			You have selected the following usernames:<br>
			<?php $usernamearray = userNameArray($username);
				  foreach($usernamearray as $name){
					if($name != 'Invalid')
						echo $name.'<br>'; 
						else $ERROR = True;
					}
					?>
					
			<br> Only valid email addresses are part of the query.
			If you do not have access to someone's non-public calendar, you may
			not see their information. Public calendar information may still be 
			displayed. <br><br>
			
			<?php if ($ERROR == True)
			
			echo '<div class = "error"> There were invalid email addresses entered.
			 There may be users missing from your search.  Please check the list
			 to make sure that all members are entered.</div>';
			$ERROR = False;
			?>
			<p><p>
			Searching for open times between: <br> 
			
			<?php 
			//We are taking the google datetime format and printing it in a
			//format easy for the reader to understand.  convertDate2PP($date)
			//does this for us.
			echo 'Start: '.convertDate2PP($start).' '; 
			echo '<br>End :   '.convertDate2PP($finish	).' '; 
			
			
			?>
			

			</div>
		</div>
	
<?php

	





	foreach($usernamearray as $name){
	
	$output = findFreeBusyByEMail($name, $client, $start, $finish);
	displayAllBusy($name, $output, $start, $finish);
	findClassTimesByUser($name);
	
	}

?>
	
  

</div><!--2nd column -->

	
<!-- 3rd Column -->

<div id = "thirdColumn" class ="col-s-5 col-md-4 align container">
	
		<div class = "greeting" >
			<?php echo 'Free times for everyone'; ?>
		</div>
		<br><br>
		
		<div class ="miniText align">
			<div class = "sample" >
				<?php
				$today = todaysDate();
				echo $today;
			
				?>
				<h4> This is for testing output.  Freetimes will be placed here </h4>
			</div>
			
			<?php
				echo '<h6>';
				
				findClassTimes($usernamearray);
				
				echo '</h6>';
			?>
		</div>
</div>
		
</div><!-- end of the  3rd column -->

